Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

290
Visualizações
What is the difference between "enableImplicitConversion" and "transform" in NestJS

I'm wonder what a difference between

transform: true

And

 transformOptions: {
      enableImplicitConversion: true,
    }

From documentation I don't quite understand which I must to use for what cases.

https://docs.nestjs.com/techniques/validation https://github.com/typestack/class-transformer

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

transform means that the ValidationPipe will return the new class instance at the end of the pipe call. This has no effect on the validations ran, as plainToClass will be called regardless so that validate can run against the class.

enableImplicitConversion will tell class-transformer that if it sees a primitive that is currently a string (like a boolean or a number) to assume it should be the primitive type instead and transform it, even though @Type(() => Number) or @Type(() => Boolean) isn't used.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda